package lab3;

public class EmptyList implements IList {

	public EmptyList() {
	}

	@Override
	public IList addElt(int i) {
		return new List(i, this);
	}

	@Override
	public int size() {
		return 0;
	}

	@Override
	public ISortedList sort() {
		return new EmptySortedList();
	}
	
	public String toString(){
		return "Empty";
	}

	@Override
	public ISortedList addToSorted(ISortedList list) {
		return list;
	}

}
